#include "stm32f10x.h"                  // Device header

void Iwdg_Init()
{
	IWDG_WriteAccessCmd(IWDG_WriteAccess_Enable);
	
	IWDG_SetPrescaler(IWDG_Prescaler_256);
	
	IWDG_SetReload(469);
	
	IWDG_ReloadCounter();
	
	IWDG_Enable();
}

void Iwdg_Feed()
{
	IWDG_ReloadCounter();
}
